#ifndef PROCESSMONITOR_H
#define PROCESSMONITOR_H

#include <QObject>

class ProcessMonitor : public QObject
{
    Q_OBJECT
public:
    explicit ProcessMonitor(const QString &processName,QObject *parent = nullptr);

signals:
    void processClosed();
private slots:
    void checkProcess();
private:
    QString m_processName;
    bool isRunPre;//上次是不是在运行中
};

#endif // PROCESSMONITOR_H
